package com.h817.Qianrushi;

public class iii {
    public static void main(String[] args) {
        int n=1245;int i=0;int m=n;
        while (m>0){
            m=m/10;
            i++;}
        System.out.println("是"+i+"位数");

        int a=n;
        System.out.println("从个位开始每一位数字依次是");
        while (a>0){
            System.out.println(a%10);
            a=a/10;
        }

    }
}
